<?php
namespace Home\Controller;
use Think\Controller;
header('content-type:text/html;charset="UTF-8"');
class CommonController extends Controller {
    public function _initialize(){
        if (!isset($_SESSION['uid'])) {
           $this->error('请用户先登录','/Home/Login/index',2);
        }
    	
    }
    
}